package chapter2;

import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;


public class WidgetWindows extends ApplicationWindow {

	public WidgetWindows() {
		super(null);
	}
	
	@Override
	protected Control createContents(Composite parent) {
		getShell().setText("Widget Windows");
		parent.setSize(400, 250);
		return super.createContents(parent);
	}
	
	public static void main(String[] args) {
		WidgetWindows win = new WidgetWindows();
		win.setBlockOnOpen(true);
		win.open();
		
		Display.getCurrent().dispose();
	}

}
